﻿function getBrowserHeight() {
    // retreives the inner height of the browser window to pass to the next page
    var browserHeight;
    browserHeight = window.innerHeight;

    // redirects browser to Search.aspx with browserHeight as a query parameter
    var redirectString;
    redirectString = "Search.aspx?height=" + browserHeight;
    window.location = redirectString;
}

function getTicket(ticketInfo) {
    // retreives the inner height of the browser window to pass to the next page
    var browserHeight;
    browserHeight = window.innerHeight;

    // redirects browser to GetTicket.aspx with query parameters
    var redirectString;
    redirectString = "GetTicket.aspx?height=" + browserHeight + "&ticketInfo=" + ticketInfo;
    window.location = redirectString;
}


function showJavaScriptHeader() {
    // displays the proper header menu
    document.getElementById("noJavaScriptMenu").style.visibility = "hidden";
    document.getElementById("noJavaScriptMenu").style.height = "0px";
    document.getElementById("menuHeader").style.visibility = "visible";
    document.getElementById("menuHeader").style.height = "48px";
}